<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Estado extends AppModel {
    public $useTable = 'estados';
    
    public function regresaBase(){
        return $this->getDataSource();
    }
    public function regresaTodos()
    {
        $t = $this->find('all',array(
            'order' => 'id ASC',
            'callbacks' => false,
          ));
        $todos = array();
        for($i = 0;$i<count($t);$i++){
            $todos[$i]=$t[$i]['Estado'];
        }
        return $todos;
    }
}
?>
